<?php

$Validator = Aero::load('libs/validator');

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title>Test request library</title>
	
</head>
<body>
	<h1>Test request library</h1>
	<pre>
$Validator->run(array(
	'first_field' => array('Some value','Some value value value value'),
	'second_field' => ' 0 ',
	'some_numeric' => '98',
	'another_numeric' => '0',
	'one_more_numer' => '12'
),$rules = array(
	'first_field' => 'required|max_length[16]',
	'second_field' => 'required|max_length[16]',
	'some_numeric' => 'integer|max_value[100]',
	'another_numeric' => 'required|min_value[100]'
)),true)
	</pre>
	<pre>
// Output: 
<?= print_r($Validator->run(array(
	'first_field' => array('Some value','Some value value value value'),
	'second_field' => ' 0 ',
	'some_numeric' => '98',
	'another_numeric' => '0',
	'one_more_numer' => '12'
),$rules = array(
	'first_field' => 'required|max_length[16]',
	'second_field' => 'required|max_length[16]',
	'some_numeric' => 'numeric|max_value[100]',
	'another_numeric' => 'required|min_value[100]',
	'one_more_numer' => 'between[10,20]'
)),true) ?>
	</pre>
</body>
</html>